//将el-table样式统一
export default function elTableMixin() {
  const customHeaderCell = {
    color: "#fff",
    backgroundColor: "#234458",
    padding: "12px 0",
    fontSize: "18px",
    "border-bottom": "1px solid #507e9c",
    textAlign: "center",
  };
  const customCell = {
    color: "#fff",
    padding: "10px 0",
    fontSize: "18px",
    "border-bottom": "1px solid #507e9c",
    cursor: "pointer",
    // backgroundColor: "#19252f",
    textAlign: "center",
  };

  const getClassName = ({ rowIndex }) => {
    return rowIndex % 2 === 0 ? "odd-row" : "even-row";
  };

  return {
    customHeaderCell,
    customCell,
    getClassName,
  };
}
